import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/blogsetting/` + url, ...arg)

/**
 * 全局站点设置Api接口管理器
 *
 * @author skwyl
 * @date  2023/10/02 14:07
 **/
export default {
	// 获取全局站点设置分页
	blogSettingPage(data) {
		return request('page', data, 'get')
	},
	// 提交全局站点设置表单 edit为true时为编辑，默认为新增
	blogSettingSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除全局站点设置
	blogSettingDelete(data) {
		return request('delete', data)
	},
	// 获取全局站点设置详情
	blogSettingDetail(data) {
		return request('detail', data, 'get')
	}
}
